//
//  MHCacheDiskHelper.h
//  cacheTool
//
//  Created by 牟华 on 16/10/31.
//  Copyright © 2016年 牟华. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "MHDiskCacheTool.h"

#define mh [[MHCacheDiskHelper alloc] init]

@interface MHCacheDiskHelper : NSObject

/**
 *  缓存对象
 */
- (void(^)(NSString *key, id value, saveCompleteHandler saveComplete))saveObject;

/**
 *  缓存图片
 */
- (void(^)(NSString *key, UIImage *image, saveCompleteHandler saveComplete))saveImage;

/**
 *  缓存其他data
 */
- (void(^)(NSString *key, NSData *voiceData, saveCompleteHandler saveComplete))saveOtherData;

/**
 *  获取对象
 */
- (void(^)(NSString *key, void(^completeObj)(id value)))getObject;

/**
 *  获取图片
 */
- (void(^)(NSString *key, void(^completeImage)(UIImage *image)))getImage;

/**
 *  获取其他data
 */
- (void(^)(NSString *key, void(^completeVoice)(NSData *data)))getOtherData;

@end
